package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.core.AccountBusBoundDao;
import com.tbit.uqbike.client.pojo.AccountBusBound;
import com.tbit.uqbike.client.service.AccountBusBoundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description: 区域业务互通绑定
 * @Date: 创建于 15:49 2020/12/30
 */
@Service
public class AccountBusBoundServiceImpl implements AccountBusBoundService {
    @Autowired
    private AccountBusBoundDao accountBusBoundDao;

    @Override
    public List<AccountBusBound> getByAccountId(Integer accountId, Integer type) {
        Map<String, Object> map = new HashMap<>();
        map.put("accountId", accountId);
        map.put("type", type);
        return accountBusBoundDao.getByAccountId(map);
    }
}
